package com.yq.core.service;

import com.yq.core.dto.UserDO;

import javax.ejb.Local;
import java.util.List;

/**
 * Created by yq on 16-5-25.
 */
@Local
public interface UserService {
    /**
     * 根据id查用户
     * */
    UserDO findUser(Long userId);

    /**
     * 根据用户信息查用户
     * */
    UserDO getUser(UserDO userDO);

    /**
     * 查询多个用户
     * */
    List<UserDO> getUserList(UserDO userDO);

    /**
     * 新建用户
     * */
    UserDO addUser(UserDO userDO);

    /**
     * 删除用户
     */

    UserDO deleteUser(UserDO userDO);

    /**
     * 更新用户
     * */
    UserDO updateUser(UserDO userDO);
}
